@echo Deploying CamlQueryDataProvider
IF [%1]==[] (
  set APPURL=http://localhost
) else (
  set APPURL=%1
)
@set PATH=C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN;%PATH%

stsadm -o deactivatefeature -name CamlQueryDataProvider -force -url %APPURL%

stsadm -o retractsolution -name CamlQueryDataProvider.wsp -immediate -allcontenturls
stsadm -o execadmsvcjobs
pause
stsadm -o deletesolution -name CamlQueryDataProvider.wsp -override
stsadm -o execadmsvcjobs
pause
stsadm -o addsolution -filename CamlQueryDataProvider.wsp 
stsadm -o execadmsvcjobs
pause
stsadm -o deploysolution -name CamlQueryDataProvider.wsp -immediate -allowGacDeployment -allContentUrls
stsadm -o execadmsvcjobs

